package com.lxj.service.impl;

import com.lxj.domain.Education;
import com.lxj.mapper.EducationMapper;
import com.lxj.service.EducationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EducationServiceImpl implements EducationService {
    @Autowired
    private EducationMapper educationMapper;
    @Override
    public List<Education> selectAll(Education education) {
        return educationMapper.selectAll(education);
    }

    @Override
    public int delete(Integer[] id) {
        return educationMapper.delete(id);
    }

    @Override
    public int add(Education education) {
        return educationMapper.add(education);
    }

    @Override
    public int edit(Education education) {
        return educationMapper.edit(education);
    }

    @Override
    public Education findById(Integer id) {
        return educationMapper.findById(id);
    }
}
